﻿<Page
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:VMDS_GUIClient_ViewModels="clr-namespace:VMDS.GUIClient.ViewModels" x:Class="VMDS.GUIClient.Views.Downloads" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="520"
	Title="Downloads">
	<Page.Resources>
		<VMDS_GUIClient_ViewModels:OperationsViewModel x:Key="OperationsViewModelDataSource" d:IsDataSource="True"/>
		<DataTemplate x:Key="DataTemplate1">
			<Grid d:DesignWidth="344" d:DesignHeight="64" Width="Auto" Height="75">
				<Grid.RowDefinitions>
					<RowDefinition Height="*"/>
				</Grid.RowDefinitions>
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="0.333*"/>
					<ColumnDefinition Width="0.571*"/>
					<ColumnDefinition Width="0.096*"/>
				</Grid.ColumnDefinitions>
				<TextBlock Margin="8,0" TextWrapping="Wrap" Text="{Binding Name}" Grid.RowSpan="1" TextAlignment="Center" VerticalAlignment="Center" FontSize="18.667" FontWeight="Bold" Foreground="#FFF5F2EC"/>
				<ProgressBar Grid.Column="1" HorizontalAlignment="Stretch" Height="42.4" Margin="8,0" VerticalAlignment="Center" Value="{Binding Progress, Mode=OneWay}"/>
				<TextBlock Margin="26.217,0,24.216,0" TextWrapping="Wrap" Text="{Binding CurrentOperation}" Grid.RowSpan="1" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Center" Width="Auto" Height="Auto" FontSize="16" FontWeight="Bold" d:LayoutOverrides="GridBox" TextAlignment="Center" Foreground="#FFF7F7F7"/>
			</Grid>
		</DataTemplate>
	</Page.Resources>
	<Page.DataContext>
		<VMDS_GUIClient_ViewModels:OperationsViewModel/>
	</Page.DataContext>

    <Grid>
    	<ListBox Margin="24,20,32,132" ItemTemplate="{DynamicResource DataTemplate1}" ItemsSource="{Binding Instance.Operations}" Background="{x:Null}" HorizontalContentAlignment="Stretch"/>
        
    </Grid>
</Page>
